

package com.gdsdxy.bookshop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gdsdxy.bookshop.pojo.Address;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AddressMapper extends BaseMapper<Address> {

    /**
     * 根据用户id统计收货地址数量
     * @param userid 用户id
     * @return  用户收货地址总数
     */
    Integer countByUserId(Integer userid);
}

